package com.szm.userserver.mapper;


import com.szm.userserver.entity.UserMongo;

import java.awt.print.Pageable;
import java.util.List;

public interface UserMongoDao {

    List<UserMongo> findAll();

    UserMongo getUserById(Integer id);

    void insert(UserMongo userMongo);

    void update(UserMongo userMongo);

    void insertAll(List<UserMongo> userMongos);

    void  remove(Integer id);

    List<UserMongo> findByPage(UserMongo userMongo, Pageable pageable);
}
